package com.naicheng.ivote.views;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.naicheng.ivote.R;
import com.naicheng.ivote.engin.BaseActivity;
import com.naicheng.ivote.utils.AppManager;

/**
 * 发现
 * 
 * @author guoxin
 * 
 */
public class FindMainActivity extends BaseActivity {

	RelativeLayout rl_guess;
	RelativeLayout rl_test;
	RelativeLayout rl_ask;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_findmain);
		rl_guess = (RelativeLayout) this.findViewById(R.id.rl_guess);
		rl_test = (RelativeLayout) this.findViewById(R.id.rl_test);
		rl_ask = (RelativeLayout) this.findViewById(R.id.rl_ask);

		rl_guess.setOnClickListener(this);
		rl_test.setOnClickListener(this);
		rl_ask.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.rl_guess:// 竞猜达人
			startActivity(new Intent(FindMainActivity.this, FindJingCaiActivity.class));
			break;
		case R.id.rl_test:// 测试达人
			startActivity(new Intent(FindMainActivity.this, FindTestActivity.class));
			//AppManager.getAppManager().finishActivity();
			break;

		default:
			break;
		}
	}

}
